
const tokenKey = 'kongsi_space_token'

export const setToken = (token: string) => {
  sessionStorage.setItem(tokenKey, token)
}

export const getToken = () => {
  return sessionStorage.getItem(tokenKey)
}

export const removeToken = () => {
  sessionStorage.removeItem(tokenKey)
}

export const removeAll = () => {
  sessionStorage.clear()
}